class Emotion {
  final String id;
  final String name;
  final String image;

  Emotion({
    required this.id,
    required this.name,
    required this.image,
  });
}

final List<Emotion> emotions = [
  Emotion(id: '1', name: 'happy', image: 'assets/image/emotions/happy.gif'),
  Emotion(id: '3', name: 'angry', image: 'assets/image/emotions/angry.gif'),
  Emotion(id: '4', name: 'love', image: 'assets/image/emotions/love.gif'),
  Emotion(id: '5', name: 'disappointed', image: 'assets/image/emotions/disappointed.gif'),
  Emotion(id: '7', name: 'bored', image: 'assets/image/emotions/bored.gif'),
];


// 根据name获取emotion
Emotion getEmotionByName(String name) {
  return emotions.firstWhere((element) => element.name == name);
}
